package com.elink.enginerring.library.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.elink.enginerring.common.BaseCo;
import com.elink.enginerring.library.entity.LibComment;

public interface LibCommentMapper {
    int deleteByPrimaryKey(Integer commentId);

    int insert(LibComment record);

    int insertSelective(LibComment record);

    LibComment selectByPrimaryKey(Integer commentId);

    int updateByPrimaryKeySelective(LibComment record);

    int updateByPrimaryKey(LibComment record);
    
	List<LibComment> selectList(@Param("bc") BaseCo bc, @Param("type") String type);

	int selectCount(@Param("bc") BaseCo bc, @Param("type") String type);

	@Update("update  comment   set auth_status = #{authStatus} where find_in_set(comment_id,#{ids})")
	void addAuth(@Param("ids")String ids,@Param("authStatus")int authStatus);
}